home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / etc / setup_usr < prev    next >
Text File  |  1990-07-15  |  2KB  |  85 lines

  1. # Install the /usr file system
  2.  
  3. cd /
  4.  
  5. # Make prerequisite MINIX directories.
  6. while read d
  7. do
  8.     test -d $d && continue
  9.     echo + mkdir $d
  10.     mkdir $d
  11. done <<'EOF'
  12. /usr/adm
  13. /usr/doc
  14. /usr/etc
  15. /usr/lib
  16. /usr/man
  17. /usr/spool
  18. /usr/spool/at
  19. /usr/spool/lpd
  20. /usr/spool/mail
  21. /usr/spool/uucp
  22. /usr/tmp
  23. EOF
  24.  
  25. echo "Insert the distribution disks one after another"
  26. echo "in the order suggested, unless you know better for sure."
  27. echo "If you want to stop feeding disks prematurely, type quit"
  28. # copy floppies
  29. for disk in 03 04 05 06 07 08 09
  30. do
  31.    echo -n "Please insert next disk (preferably $disk), then hit RETURN ◆"
  32.    read x
  33.    case "$x" in
  34.    q*)    break;;
  35.    esac
  36.    /etc/mount /dev/dd0 /user
  37.    cpdir -msv /user /usr
  38.    /etc/umount /dev/dd0
  39. done
  40.  
  41. # decompress
  42. find /usr/include /usr/lib /usr/src -name '*.Z' -print |
  43.     sed 's/\(.*\)\//\1 /' |
  44.     while read d f
  45.     do
  46.         echo "+ cd $d; compress -d $f"
  47.         cd $d
  48.         compress -d $f && rm -f $f
  49.     done
  50. cd /
  51.  
  52. # extract archives
  53. find /usr/include /usr/src -name '*.a' -print |
  54.     sed 's/\(.*\)\//\1 /' |
  55.     while read d f
  56.     do
  57.         echo "+ cd $d; ar x $f"
  58.         cd $d
  59.         ar x $f && rm -f $f
  60.         chown bin *
  61.         chgrp bin *
  62.     done
  63. cd /
  64.  
  65. # Make links to machine specific versions
  66. while read from to
  67. do
  68.     test -f $from || continue
  69.     echo "+ rm -f $to; ln $from $to"
  70.     rm -f $to
  71.     ln $from $to
  72. done <<'EOF'
  73. /usr/bin/compress /usr/bin/uncompress
  74. /usr/bin/compress /usr/bin/zcat
  75. /usr/bin/machine /usr/bin/chip
  76. /usr/bin/elvis /usr/bin/ex
  77. /usr/bin/elvis /usr/bin/vi
  78. /usr/bin/elvis /usr/bin/view
  79. /usr/bin/tos /usr/bin/tosdir
  80. /usr/bin/tos /usr/bin/tosread
  81. /usr/bin/tos /usr/bin/toswrite
  82. EOF
  83.  
  84. echo Installation completed.
  85.